.create-post-container {
    width: 1000px;
    margin: 80px auto 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.create-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.create-post-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin: 0;
    font-weight: 600;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #546d9e;
    border-radius: 6px;
    color: #546d9e;
    background: transparent;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #546d9e;
    color: white;
    transform: translateY(-2px);
}

.create-post-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 500;
}

.form-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    border-color: #546d9e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(84, 109, 158, 0.1);
}

.cover-upload {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cover-upload:hover {
    border-color: #546d9e;
    background: rgba(84, 109, 158, 0.05);
}

.cover-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.upload-icon i {
    font-size: 2.5em;
    color: #546d9e;
}

.upload-icon span {
    font-size: 1.2em;
    font-weight: 500;
}

.upload-tip {
    color: #999;
    font-size: 0.9em;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #546d9e;
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(84, 109, 158, 0.2);
}

.submit-btn:hover {
    background: #3c5a9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 109, 158, 0.3);
}

/* Markdown 编辑器样式覆盖 */
.EasyMDEContainer {
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    border: 2px solid #eee;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
}

.CodeMirror {
    border: 2px solid #eee !important;
    border-radius: 0 0 8px 8px;
}

.CodeMirror-focused {
    border-color: #546d9e !important;
    box-shadow: 0 0 0 3px rgba(84, 109, 158, 0.1);
}

/* 编辑器容器样式 */
.editor-container {
    width: 100%;
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}